import config from '../../utils/config';
import { stringify } from 'qs';

export default function MonitoringAPI(api) {
  return {
    //获取限额信息下拉列表
    getSelectData: (query) => api.post(`${config.interfaces.type5}risk-server/riskCtrl/queryRules`, query),

    //获取表格数据
    getTableDta: (query) => api.get(`${config.interfaces.type5}risk-server/riskCtrl/queryRulesResult`, query),

    //获取详细信息
    getDetails: (query) => api.get(`${config.interfaces.type5}risk-server/riskCtrl/find/${query}`, {}),
    //点击 查询调用
    runAll: (query) => api.get(`${config.interfaces.type5}risk-server/riskCtrl/run-all`, {}),
  };
}
